package com.taotao.delayjob.core.model;

import com.alibaba.fastjson2.JSON;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
* 任务重试实例
* @author Fan Beibei
* @date   2024-07-17 10:22:25
*/
@Data
public class RetryTriggerInfo implements Serializable {
	@NotNull(message = "id不能为空")
	@ApiModelProperty(value="主键")
	private Long id;
	@NotBlank(message = "业务参数不能为空")
	@ApiModelProperty(value="业务参数")
	private String param;

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}